[USER (data scientist)]: Great! Now, can you help me create a function to update the odds for each match using these weights? Please define a function to update the odds for each match in the ATP tennis dataset, based on players' overall win rates, head-to-head win rates, and specified weights for performance and head-to-head results.
My template of code snippet is:

---BEGIN CODE TEMPLATE---

import pandas as pd
import numpy as np
import pickle

atp_tennis = pd.read_csv('atp_tennis.csv')

# YOUR SOLUTION BEGIN:
<code1>
[COMPLETE YOUR CODE] 
</code1>
# YOUR SOLUTION END

---END CODE TEMPLATE---

[YOU (AI assistant)]: Of course! Here's a function that updates the odds for a given match based on the performance and head-to-head weights: 
'''
import pandas as pd
import numpy as np
import pickle

atp_tennis = pd.read_csv('atp_tennis.csv')

# YOUR SOLUTION BEGIN:
